/*
 * instruction.h
 *
 *  Created on: Mar 10, 2012
 *
 *  instruction.h is used for the instruction struct.
 *  Instructions are a combination of OPCODE and sometimes a value.
 */

#ifndef INSTRUCTION_H_
#define INSTRUCTION_H_


enum OPCODE {
	NO_OP = 0,
	DEC_MEMORY = 1,
	INC_MEMORY = 2,
	INPUT_WAIT = 3,
};

typedef struct {
	enum OPCODE operation;
	int address;

} instruction;

instruction* instruction_init(enum OPCODE opc, int the_address);

#endif /* INSTRUCTION_H_ */
